package com.jason.product;

import com.alibaba.cloud.seata.GlobalTransactionAutoConfiguration;
//import com.jason.product.config.DataSourceConfiguration;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ImportResource;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@MapperScan("com.jason.product.mapper")
@EnableTransactionManagement
@SpringBootApplication(
        exclude ={
                GlobalTransactionAutoConfiguration.class,
                //DataSourceAutoConfiguration.class
        })
@EnableDiscoveryClient
@EnableDubbo(scanBasePackages = "com.jason.product.service")
/*@ImportResource("classpath:springdubbo/*.xml")*/
public class ProductServiceStarter {
    public static void main(String[] args) {
        SpringApplication.run(ProductServiceStarter.class);
    }
}
